package com.byt;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 异步线程池执行类
 */
public class AsyncExecutor {

	private static ExecutorService exec= Executors.newCachedThreadPool();
	/**
	 * 异步执行方法 没有返回值
	 */
	public static void exec(Runnable task) {
		try {
			exec.execute(task);
		} catch (Exception e) {
			Throwable cause = e.getCause();
		}
	}
}
